﻿@section header
{
    <link rel="stylesheet" href="/css/treetable.css" />
}
<blockquote class="layui-elem-quote news_search toolList" id="menus"></blockquote>

<div class="layui-card">
   
        <table class="layui-table"
               lay-data="{height: 'full-80', page:true, id:'mainList'}"
               lay-filter="list" lay-size="sm">
            <thead>
                <tr>
                    <th lay-data="{checkbox:true, fixed: true}"></th>
                    <th lay-data="{field:'Key', width:150}">资源标识</th>
                    <th lay-data="{field:'Name', width:150}">名称</th>
                    <th lay-data="{field:'Status', width:150}">当前状态</th>
                    <th lay-data="{field:'SortNo', width:150}">排序号</th>
                    <th lay-data="{field:'Description', width:150}">描述</th>
                    <th lay-data="{field:'TypeName', width:150}">分类名称</th>
                </tr>
            </thead>
        </table>
    
</div>

<!--添加/编辑窗口-->
<div id="divEdit" style="display: none">
    <form class="layui-form layui-form-pane" action="" id="formEdit">
        <input type="hidden" name="Id" v-model="Id" />
       
        <div class="layui-form-item">
            <label class="layui-form-label">资源标识</label>
            <div class="layui-input-block">
                <input type="text" name="Key" v-model="Key" required lay-verify="required"
                       placeholder="资源英文唯一标识" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">名称</label>
            <div class="layui-input-block">
                <input type="text" name="Name" v-model="Name" required lay-verify="required"
                       placeholder="名称" autocomplete="off" class="layui-input">
            </div>
        </div>
        
        <div class="layui-form-item">
            <label class="layui-form-label">描述</label>
            <div class="layui-input-block">
                <input type="text" name="Description" v-model="Description" required lay-verify="required"
                       placeholder="描述" autocomplete="off" class="layui-input">
            </div>
        </div>
      
        <div class="layui-form-item">
            <label class="layui-form-label">所属应用</label>
            <div class="layui-input-block">
              
                <input id="AppName" name="AppName" v-model="AppName" class="layui-input" />
                <input id="AppId" name="AppId" v-model="AppId"  type="hidden" />
                <div id="menuContent" class="menuContent" style="display: none;">
                    <ul id="org" class="ztree"></ul>
                </div>
                
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="formSubmit">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</div>

<script type="text/javascript" src="/layui/layui.js"></script>
<script type="text/javascript" src="/userJs/Resources.js"></script>


